package com.educate.book.dao;

import com.educate.book.dao.impl.PictureBookDaoImpl;
import com.educate.book.model.bo.PictureBookBO;
import com.educate.book.model.po.PictureBook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PictureBookDao extends MongoRepository<PictureBook, String> {

    /**
     * #{@link PictureBookDaoImpl#query(PictureBookBO, Pageable)}
     */
    Page<PictureBook> query(PictureBookBO bo, Pageable pageable);
}
